.class public Lcom/brixd/niceapp/util/DetailRequestCacheUtil;
.super Ljava/lang/Object;
.source "DetailRequestCacheUtil.java"


# instance fields
.field private mCommunityDetailRequestCache:Lcom/brixd/niceapp/util/CommunityDetailRequestCache;

.field private mContext:Landroid/content/Context;

.field private mDetailRequestCache:Lcom/brixd/niceapp/util/DetailRequestCache;

.field private mNiceGoodsDetailRequestCache:Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 2
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 13
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 14
    iput-object p1, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mContext:Landroid/content/Context;

    .line 15
    return-void
.end method

.method private initCommunityDetailCacheIfNeeded()V
    .registers 3

    .prologue
    .line 78
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mCommunityDetailRequestCache:Lcom/brixd/niceapp/util/CommunityDetailRequestCache;

    if-nez v0, :cond_d

    .line 79
    new-instance v0, Lcom/brixd/niceapp/util/CommunityDetailRequestCache;

    iget-object v1, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/brixd/niceapp/util/CommunityDetailRequestCache;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mCommunityDetailRequestCache:Lcom/brixd/niceapp/util/CommunityDetailRequestCache;

    .line 81
    :cond_d
    return-void
.end method

.method private initDetailCacheIfNeeded()V
    .registers 3

    .prologue
    .line 72
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mDetailRequestCache:Lcom/brixd/niceapp/util/DetailRequestCache;

    if-nez v0, :cond_d

    .line 73
    new-instance v0, Lcom/brixd/niceapp/util/DetailRequestCache;

    iget-object v1, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/brixd/niceapp/util/DetailRequestCache;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mDetailRequestCache:Lcom/brixd/niceapp/util/DetailRequestCache;

    .line 75
    :cond_d
    return-void
.end method

.method private initNiceGoodsDetailCacheIfNeeded()V
    .registers 3

    .prologue
    .line 84
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mNiceGoodsDetailRequestCache:Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;

    if-nez v0, :cond_d

    .line 85
    new-instance v0, Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;

    iget-object v1, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mNiceGoodsDetailRequestCache:Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;

    .line 87
    :cond_d
    return-void
.end method


# virtual methods
.method public gotoCommunityDetail(I)V
    .registers 3
    .param p1, "appId"    # I

    .prologue
    .line 32
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initCommunityDetailCacheIfNeeded()V

    .line 33
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mCommunityDetailRequestCache:Lcom/brixd/niceapp/util/CommunityDetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/CommunityDetailRequestCache;->gotoDetail(I)V

    .line 34
    return-void
.end method

.method public gotoNiceDailyDetail(I)V
    .registers 3
    .param p1, "appId"    # I

    .prologue
    .line 18
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoNiceDailyDetail(IZ)V

    .line 19
    return-void
.end method

.method public gotoNiceDailyDetail(IZ)V
    .registers 4
    .param p1, "appId"    # I
    .param p2, "isClearTop"    # Z

    .prologue
    .line 22
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initDetailCacheIfNeeded()V

    .line 23
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mDetailRequestCache:Lcom/brixd/niceapp/util/DetailRequestCache;

    invoke-virtual {v0, p1, p2}, Lcom/brixd/niceapp/util/DetailRequestCache;->gotoDetail(IZ)V

    .line 24
    return-void
.end method

.method public gotoNiceDailyDetail(Ljava/lang/String;)V
    .registers 3
    .param p1, "title"    # Ljava/lang/String;

    .prologue
    .line 27
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initDetailCacheIfNeeded()V

    .line 28
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mDetailRequestCache:Lcom/brixd/niceapp/util/DetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/DetailRequestCache;->gotoDetail(Ljava/lang/String;)V

    .line 29
    return-void
.end method

.method public gotoNiceGoodsDetail(I)V
    .registers 3
    .param p1, "articleId"    # I

    .prologue
    .line 37
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initNiceGoodsDetailCacheIfNeeded()V

    .line 38
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mNiceGoodsDetailRequestCache:Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;->gotoDetail(I)V

    .line 39
    return-void
.end method

.method public setScrollToUpUsersInCommunityDetail(Z)V
    .registers 3
    .param p1, "scrollToUpUsers"    # Z

    .prologue
    .line 52
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initCommunityDetailCacheIfNeeded()V

    .line 53
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mCommunityDetailRequestCache:Lcom/brixd/niceapp/util/CommunityDetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/CommunityDetailRequestCache;->setScrollToUpUsers(Z)V

    .line 54
    return-void
.end method

.method public setScrollToUpUsersInDetail(Z)V
    .registers 3
    .param p1, "scrollToUpUsers"    # Z

    .prologue
    .line 42
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initDetailCacheIfNeeded()V

    .line 43
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mDetailRequestCache:Lcom/brixd/niceapp/util/DetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/DetailRequestCache;->setScrollToUpUsers(Z)V

    .line 44
    return-void
.end method

.method public setScrollToUpUsersInNiceGoodsDetail(Z)V
    .registers 3
    .param p1, "scrollToUpUsers"    # Z

    .prologue
    .line 62
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initNiceGoodsDetailCacheIfNeeded()V

    .line 63
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mNiceGoodsDetailRequestCache:Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;->setScrollToUpUsers(Z)V

    .line 64
    return-void
.end method

.method public setSctollToCommentInCommunityDetail(Z)V
    .registers 3
    .param p1, "scrollToComment"    # Z

    .prologue
    .line 57
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initCommunityDetailCacheIfNeeded()V

    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mCommunityDetailRequestCache:Lcom/brixd/niceapp/util/CommunityDetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/CommunityDetailRequestCache;->setSctollToComment(Z)V

    .line 59
    return-void
.end method

.method public setSctollToCommentInDetail(Z)V
    .registers 3
    .param p1, "scrollToComment"    # Z

    .prologue
    .line 47
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initDetailCacheIfNeeded()V

    .line 48
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mDetailRequestCache:Lcom/brixd/niceapp/util/DetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/DetailRequestCache;->setSctollToComment(Z)V

    .line 49
    return-void
.end method

.method public setSctollToCommentInNiceGoodsDetail(Z)V
    .registers 3
    .param p1, "scrollToComment"    # Z

    .prologue
    .line 67
    invoke-direct {p0}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->initNiceGoodsDetailCacheIfNeeded()V

    .line 68
    iget-object v0, p0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->mNiceGoodsDetailRequestCache:Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/util/NiceGoodsDetailRequestCache;->setSctollToComment(Z)V

    .line 69
    return-void
.end method
